package com.jinfang.bankpractice.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.jinfang.bankpractice.model.Quesbank;
public interface QuesbankMapper {

	/**
	* 计数
	*/
	public long count();
	
	public long countByCourse(int course);
	
	/**
	 * 根据id查找
	 * @param id
	 * @return
	 */
	public Quesbank getQuesbankById(long id);
	
	public List<Quesbank> getQuesbankByids(@Param("ids")List<Long> ids);

	
	
	/**
	 * 
	 * @param course
	 * @return
	 */
	public List<Quesbank> queryAll(int course);


	
	/**
	 * 统计符合条件的数量
	 * @param dictionary 条件
	 * @return 数量值
	 */
	public long countBySample(Quesbank quesbank);

}
